import pymysql

conn = pymysql.connect(host='127.0.0.1',port= 3306,user = 'root',passwd='22267721mq',db='pythonclass')
cursor = conn.cursor()
# res = cursor.execute('show tables')
res = cursor.execute('select * from game')
# row = cursor.fetchone()

# row = cursor.fetchall()
row = cursor.fetchmany(2)

print(res)
print(row)
cursor.close()
conn.close()